package my.application.clock;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class MyClock extends Activity {
	private boolean changedFlag = true;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
	}

	public void myOnClick(View v) {
		View layout = findViewById(R.id.linearLayout1);
		if (changedFlag) {
			layout.setBackgroundResource(R.drawable.img2);
			changedFlag = false;
		} else {
			layout.setBackgroundResource(R.drawable.img1);
			changedFlag = true;
		}
	}
}